<?php
//==================================
//设置搜索顺序，
//拼装sql语句



//设置排序

    if($_REQUEST['sortby']=="")
    {
        $_sortby="nid";
    }
    else
    {
        $_sortby=$_REQUEST['sortby'];
    }

    if($_REQUEST['sortorder']=="")
    {
        $_sortorder="desc";
    }
    else
    {
        $_sortorder=$_REQUEST['sortorder'];
    }

    $sort = $_sortby." ".$_sortorder;

?>